Skip to content

feat(rhdh-release): use JQL Team[Team] filter with Cloud ID for team queries#52

Open
jasperchui wants to merge 1 commit into
mainfrom
feat/jql-team-cloud-id-filter
Open

feat(rhdh-release): use JQL Team[Team] filter with Cloud ID for team queries#52
jasperchui wants to merge 1 commit into
mainfrom
feat/jql-team-cloud-id-filter

Conversation

@jasperchui

Copy link
Copy Markdown

Summary

  • Adds 3 new JQL templates (open_issues_by_team, feature_freeze_issues_by_team, code_freeze_issues_by_team) that use "Team[Team]" = "{{CLOUD_ID}}" to filter issues by team directly in JQL
  • Replaces the slow parse_issues.py --enrich workflow — team breakdown queries now take ~12 seconds instead of minutes (eliminates per-issue API enrichment calls for 1,200+ issues)
  • Updates jql.py with cloud_id placeholder support in render() and render_with_url()
  • Rewrites team-related commands in release.py (cmd_team_breakdown, cmd_slack_feature_freeze_update, cmd_slack_code_freeze_update) to issue one JQL count query per team instead of enriching every issue
  • Updates workflow docs and SKILL.md to reference the Cloud ID approach

Background

The Jira "Team" custom field (customfield_10001) stores a Cloud ID (e.g., ec74d716-af36-4b3c-950f-f79213d08f71-4403 for COPE). While previously believed to be non-queryable via JQL, the syntax "Team[Team]" = "CLOUD_ID" works and returns results in ~1.5 seconds. Cloud IDs are sourced from the "Cloud ID" column in the RHDH Team Mapping Google Sheet.

Test plan

  • Verified "Team[Team]" = "ec74d716-af36-4b3c-950f-f79213d08f71-4403" returns 209 COPE issues for 2.1.0
  • Ran team-breakdown 2.1.0 end-to-end — completes in ~12s with correct counts for all 6 engineering teams
  • Python syntax check passes for all modified scripts
  • Verify feature freeze and code freeze Slack message generation still works correctly

Made with Cursor

…queries

Replace the slow parse_issues.py --enrich workflow for team-based filtering
with direct JQL filtering using "Team[Team]" = "{{CLOUD_ID}}". This reduces
team breakdown queries from minutes (per-issue API enrichment) to ~12 seconds
(one JQL count per team).

Changes:
- Add 3 new JQL templates: open_issues_by_team, feature_freeze_issues_by_team,
  code_freeze_issues_by_team
- Add cloud_id placeholder support to jql.py render/render_with_url
- Rewrite cmd_team_breakdown, cmd_slack_feature_freeze_update, and
  cmd_slack_code_freeze_update in release.py to use JQL team filter
- Update workflow docs and SKILL.md to reference Cloud ID approach

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant